Repository navigation
Command to open compiled file - #294
Conversation
|
@fhammerschmidt would it be possible to refactor this to use the same |
|
Yes! Just did that and also factored out all the commands into separate files. Let me know if you think there is a better icon for this action: https://code.visualstudio.com/api/references/icons-in-labels#icon-listing |
cristianoc
left a comment
There was a problem hiding this comment.
Looking great.
Is it ready to merge?
|
IMO yes, I used it all day while working on a big monorepo and it always worked well so far. |
|
I tried to be more explicit with the modulename -> foldername resolving. |
This implements #107
Press CMD+Shift+P and select
ReScript: Open the compiled JS file for this implementation file.It should open the corresponding
.bs.js,.js,.mjsin the correct directory (whether in-source or not).Unfortunately, this requires to parse
bsconfig.json. I did not know how to account for an array with more than one element of package-specs, so for now it just takes the first one, but I guess it is better to use an object anyway, as suggested by the docs.